package demo3;

public class Dog extends Animal implements Iruning,Iswimming{
    /*public Dog(String name) {
        super(name);
    }*/

    public Dog(String name, int age) {
        super(name, age);
    }


    @Override
    public void run() {
        System.out.println(this.name+" 跑步ing");
    }

    @Override
    public void swim() {
        System.out.println(this.name+" 游泳ing");
    }
}
